<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>插值语法实现</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    
    <div id="root">
        姓: <input type="text" v-model="firstName"><br>
        姓: <input type="text" v-model="lastName"><br>
        <span>全名:{{firstName + '-' + lastName</span>
    </div>

    <script>
        new Vue({
            el: '#root',
            data: {
                firstName: '张',
                lastName: '葵'
            }
        })
    </script>
</body>
</html>